//
//  SCConfigTool.m
//  ScalperMerchant
//
//  Created by 王云 on 2017/10/9.
//  Copyright © 2017年 WY. All rights reserved.
//

#import "SCConfigTool.h"

@implementation SCConfigTool

+ (void)getBaseData{
    
    [self getClassification];
    [self getBdList];
}
//获取店铺分类
+ (void)getClassification{
    
    [SCApiTool ScGoodsclassSuccess:^(NSArray *data) {
        [ZYUserDefaults setObject:data forKey:KGoodsclass];
        [ZYUserDefaults synchronize];

    } failure:^(NSString *errormsg) {
        
    }];
    
}
//获取销售人员列表
+ (void)getBdList{
    
    [SCApiTool ScBdlistSuccess:^(NSArray *data) {
        [ZYUserDefaults setObject:data forKey:KBdList];
        [ZYUserDefaults synchronize];

    } failure:^(NSString *errormsg) {
        
    }];
}

@end
